/**
* Copyright @ 2023 iAuto (Shanghai) Co., Ltd.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are NOT permitted except as agreed by
* iAuto (Shanghai) Co., Ltd.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/



import request from '../utils/request';

enum Methods {
  POST = 'POST',
  GET = 'GET',
  DELETE = 'DELETE',
  PUT = 'PUT',
}
// 车型列表
export async function getCarModelList(payload: any) {
  // return request(`/iautoAapi/vehicle-ms/model/page`, {
  // return request(`/vehicle-ms/v1/model/list`, {
  return request(`/vehicle-ms/v1/admin/model/list`, {
    method: Methods.GET,
    params: payload,
  });
}

// 未发布车型列表
export async function getUnPublishCarList(payload: any) {
  return request(`/servicemgmt/v1/admin/user/permission/carmodel/approveDetail`, {
    method: Methods.GET,
    params: payload,
  });
}